package com.dotlrn.mobile;

import com.dotlrn.mobile.nfc.DotLRNNFCContextualLearningDiscoverActivity;
import com.dotlrn.mobile.nfc.DotLRNNFCContextualLearningTagIDActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class DotLRNNFCContextualLearningActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		final Button enterDotLRNButton = (Button) findViewById(R.id.enter_dotlrn_button);
		final Button settingsButton = (Button) findViewById(R.id.settings_button);
		final Button aboutButton = (Button) findViewById(R.id.about_button);
		final Button readTagButton = (Button) findViewById(R.id.read_tag_button);

		enterDotLRNButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(
						DotLRNNFCContextualLearningActivity.this,
						DotLRNNFCContextualLearningDiscoverActivity.class);
				startActivity(intent);
			}
		});
		readTagButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(
						DotLRNNFCContextualLearningActivity.this,
						DotLRNNFCContextualLearningTagIDActivity.class);
				startActivity(intent);
			}
		});
		settingsButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(
						DotLRNNFCContextualLearningActivity.this,
						DotLRNNFCContextualLearningSettingsActivity.class);
				startActivity(intent);
			}
		});
		aboutButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(
						DotLRNNFCContextualLearningActivity.this,
						DotLRNNFCContextualLearningAboutActivity.class);
				startActivity(intent);
			}
		});

	}

}